﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="TeamProject.pics.WebForm1" %>
<%@ Register Assembly="GoogleMap" TagPrefix="RRR" Namespace="Reimers.Map" %>
<%@ Register TagPrefix="ACT" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>
        Tímový projekt
    </title>
    <link rel="Stylesheet" type="text/css" href="style.css" />
</head>
<body>
    
    <form id="form1" runat="server" autocomplete="off">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
          <div style="width: 1000px;margin-left:auto;margin-right:auto;font-family:Tahoma;font-size:11px;background-image:url('../pics/backround.jpg');">
            <div style="width: 900px; margin-left: 100px; height: 120px;margin-left:auto;margin-right:auto;text-align:center">

            </div>
            <div style=" margin-right: 0px;table-layout:auto">  
            
                <!-- VLAVO -->
                <div style="width:380px;float:left;padding:5px">
                  <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                                                <ContentTemplate>
                    <ACT:Accordion runat="server" ID="MyAccordion" FadeTransitions="true"
                     FramesPerSecond="40" HeaderSelectedCssClass="midHeader" HeaderCssClass="midHeader" ContentCssClass="miniBody"
                     BorderStyle="Solid" BorderWidth="1px" BorderColor="#ccccca" SuppressHeaderPostbacks="true" >
                        
                        <ContentTemplate>
                            content template
                        </ContentTemplate>
                        
                        <Panes>
                            <ACT:AccordionPane ID="AccordionPane1" runat="server" >
                                <Header>
                                    <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">Práca s objektami</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div style="padding:5px;height:300px">
                                        pridavanie novych objektov<br />
                                        editacia objektov
                                    </div>
                                </Content>
                            </ACT:AccordionPane>
                            <ACT:AccordionPane ID="AccordionPane2" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="White">Vyhľadávanie</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div style="height:100px;padding:5px">
                                        <asp:TextBox ID="TBSearchedTerm" runat="server" AutoCompleteType="Search" width="290" ></asp:TextBox>
                                        <asp:Button ID="Button1" UseSubmitBehavior="false" runat="server" Text="Hľadaj"/>
                                        <ACT:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServicePath="AutoCompleteSearch.asmx" ServiceMethod="getSuggestions"
                                         TargetControlID="TBSearchedTerm" MinimumPrefixLength="1" CompletionSetCount="20"
                                          CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
                                         CompletionInterval="5"      
                                         >
                                        </ACT:AutoCompleteExtender> 
                                        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                                    </div>
                                </Content>
                            </ACT:AccordionPane>
                            <ACT:AccordionPane ID="AccordionPane3" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">Výber konceptov</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div> 



    <script type="text/javascript" src="GraphGear-1.4/swfobject/swfobject.js"></script>

    	<div id="wrap">
    				
	    	<div id="gearspace">
    			<strong></strong>
	    	</div>
	
		
		
		    <script type="text/javascript" >
			// <![CDATA[
		      
			    var so = new SWFObject("GraphGear-1.4/GraphGear.swf", "graphgear", "360", "400", "8");
			    so.addVariable("graphXMLFile", "graph.xml"); 
			    so.addParam("allowScriptAccess", "always");
			    so.addParam("scale", "noborder");
			    so.addParam("salign", "tl");
			     
				/*var koc= new String;
				koc=so.getAttribute("text");
				  so.addParam("title",koc); */   
			  
			    so.write("gearspace");
			    
		
			// ]]>
		    </script>

    </div>
</div>
                                </Content>
                            </ACT:AccordionPane>
                            <ACT:AccordionPane ID="AccordionPane5" runat="server">
                                <Header>
                                    <asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">Prihlásenie</asp:LinkButton>
                                </Header>
                                <Content>
                                    <div style="padding:5px">
                                        <div style="padding-bottom:2px">
                                            <asp:Label ID="Label2" runat="server" Text="Prihlasovacie meno"></asp:Label>
                                        </div>
                                        <div style="padding-bottom:2px">
                                            <asp:TextBox ID="TextBox1" runat="server" Width="160px"></asp:TextBox>
                                        </div>
                                        <div style="padding-bottom:2px">
                                            <asp:Label ID="Label3" runat="server" Text="Heslo"></asp:Label>
                                        </div>
                                        <div style="padding-bottom:2px">
                                            <asp:TextBox ID="TextBox2" runat="server" Width="160px" TextMode="Password"></asp:TextBox>
                                        </div>
                                        <div style="padding-bottom:2px;text-align:center;padding-top:5px">
                                            
                                         <asp:Button ID="Button2" runat="server" Text="Prihlásiť" OnClick="Login"/>
                     
                                        </div>
                                        <div style="padding-bottom:2px">
                                            <asp:LinkButton ID="LBRegistracia" runat="server">Registrácia</asp:LinkButton>
                                        </div>
                                        <div style="padding-bottom:2px">
                                            <asp:HyperLink ID="HyperLink2" runat="server" >Zabudol som heslo</asp:HyperLink>  
                                        </div>
                                    </div>
                                    
                                    <ACT:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LBRegistracia" CacheDynamicResults="false" CancelControlID="BTNCancel" PopupControlID="PanelRegistration" BackgroundCssClass="modalBackground">
                                        
                                    </ACT:ModalPopupExtender>
        
                                </Content>
                            </ACT:AccordionPane>
                        </Panes>
                        
                    </ACT:Accordion>
                         </ContentTemplate>
                    </asp:UpdatePanel>   
                </div>
                 <!-- VLAVO -->
                  
                <asp:Panel ID="PanelRegistration" runat="server" CssClass="ModalWindow" >
                                        
                    <div style="width:400px;padding:20px;font-family:Tahoma;font-size:11px;font-weight:bold">
                                            <div style="text-align:center;font-size:15px;padding-bottom:30px;font-weight:normal">
                                                Registrácia nového používateľa
                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Login
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBLogin" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ForeColor="Black" Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBLogin" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>

                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Heslo
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBPassword" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBPassword" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Zopakujte heslo
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBPassword2" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBPassword2" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Meno
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBName" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBName" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                
                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Priezvisko
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBSurname" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBSurname" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                            <div>
                                                <div style="float:left;padding-left:20px">
                                                    Email
                                                </div>
                                                <div style="text-align:right">
                                                    <div>
                                                        <asp:TextBox ID="TBEmail" runat="server"></asp:TextBox>
                                                    </div>
                                                    <div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5"  Font-Size="11px" Font-Names="Tahoma" ValidationGroup="registration" ControlToValidate="TBEmail" runat="server" ErrorMessage="Povinný údaj"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                
                                            </div>
                                            <div>
                                              
                                                   
                                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                    <ContentTemplate>
                                                        <div style="padding-right:20px;text-align:center">
                                                            <asp:Button ID="BTNRegister" runat="server" Text="Registruj" ValidationGroup="registration" OnClick="Register"/>
                                                            <asp:Button ID="BTNCancel" runat="server" Text="Zrušiť" />
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                                
                                            </div>
                                        </div>
                </asp:Panel>
                
                <!-- STRED -->
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                <div style="width: 600px; float:left; padding:5px">
                    
                    <div style="padding:4px;background-image:url('../pics/mapBackround.jpg')">
                        <RRR:GoogleMap id="GMap" runat="server" Height="592px" Width="592px" Zoom="2"/>
                        
                    </div>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>
                 <!-- STRED -->
                        
        </div>
        
        <!-- FOOTER -->    
        <div style="margin-left:auto;margin-right:auto;">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/pics/footerr.jpg"/>       
        </div>
        <!-- FOOTER -->
        
      </div>
    </form>
</body>
</html>